﻿/***************************************************************************/
/// <summary>
///  <title>SLIC JobDataModel</title>
///  <description>JobData Model for Job Details</description>
///  <copyRight>Copyright (c) 2010</copyRight>
///  <company>IronOne Technologies (Pvt)Ltd</company>
///  <createdOn>2011-08-01</createdOn>
///  <author></author>
///  <modification>
///     <modifiedBy></modifiedBy>
///      <modifiedDate></modifiedDate>
///     <description></description>
///  </modification>
///
/// </summary>
/***************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SLIC.Models.Enums;

namespace SLIC.Models.Job
{
    public class JobDataModel
    {
        public int JobId { get; set; }
        public string JobNo { get; set; }
        public string VehicleNo { get; set; }
        public string Caller_Name { get; set; }
        public string Caller_ContactNo { get; set; }
        public DateTime? TimeReported { get; set; }
        public DateTime TimeVisited { get; set; }
        public string Insured_Name { get; set; }
        public string Insured_ContactNo { get; set; }
        public string VehicleDescription { get; set; }
        public DateTime Acc_Time { get; set; }
        public string Acc_Location { get; set; }
        public string Policy_CN_No { get; set; }
        public DateTime Policy_CN_StartDate { get; set; }
        public DateTime Policy_CN_EndDate { get; set; }
        public string Policy_CN_SerialNo { get; set; }
        public string CN_IssuedBy { get; set; }
        public string CN_Reasons { get; set; }
        public string ChassyNo { get; set; }
        public string EngineNo { get; set; }
        public string DriverName { get; set; }
        public string License_No { get; set; }
        public DateTime License_ExpiryDate { get; set; }
        public int License_TypeId { get; set; }
        public int License_IsNew { get; set; }
        public string DriverNIC { get; set; }
        public int DriverCompetence { get; set; }
        public int MeterReading { get; set; }
        public string DamagedItems { get; set; }
        public string PossibleDR { get; set; }
        public int Tyre_FR_Status { get; set; }
        public int Tyre_FL_Status { get; set; }
        public int Tyre_RRL_Status { get; set; }
        public int Tyre_RLR_Status { get; set; }
        public int Tyre_RLL_Status { get; set; }
        public int Tyre_RRR_Status { get; set; }
        public int Tyre_IsContributory { get; set; }
        public string Goods_Type { get; set; }
        public double Goods_Weight { get; set; }
        public string Goods_Damage { get; set; }
        public int IsOverLoaded { get; set; }
        public int Is_OL_Contributory { get; set; }
        public string OtherVeh_Involved { get; set; }
        public string ThirdParty_Damage { get; set; }
        public string Injuries { get; set; }
        public int Nearest_PoliceStationId { get; set; }
        public int Journey_PurposeId { get; set; }
        public int DriverRelationship { get; set; }
        public double PavValue { get; set; }
        public int ProcessingBranchId { get; set; }
        public int CSR_UserId { get; set; }
        public int CSR_Consistency { get; set; }


        // for xml
        #region customProperties
        public string ProcessingBranch { get; set; }
        public string CSR_UserName { get; set; }
        public string Nearest_PoliceStation { get; set; }

        public string License_Type
        {
            get
            {
                //return ((LicenseType)License_TypeId).ToString();
                return Enum.GetName(typeof(LicenseType), License_TypeId);
            }
        }

        public string DriverInsuredRelationship
        {
            get
            {
                //return ((LicenseType)License_TypeId).ToString();
                return Enum.GetName(typeof(RelationshipType), DriverRelationship);
            }
        }

        public string Journey_Purpose
        {
            get
            {
                //return ((LicenseType)License_TypeId).ToString();
                return Enum.GetName(typeof(JourneyPurpose), Journey_PurposeId);
            }
        }

        
        #endregion
    }
}